You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > SinCos Method > TMtxVec.SinCos Method ([In] TMtxVec, [In] TMtxVec)
Dew Math for .NET
ContentsIndexHome
Example
using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a,s,v; MtxVec.CreateIt(out a, out s, out c); try { a.SetIt(false, new double[] {0,Math387.PiDiv2,Math387.PI); a.SinCos(s,c); // s=[0,1,0], c =[1,0,-1] } finally { MtxVec.FreeIt(ref a, ref s, ref c); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.